package com.nw.dsl4j.annotations;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

import com.nw.dsl4j.runtime.converters.NullConverter;

/**
 * Use this annotaiton when the rule class is not the field type.
 * i.e, use this for "String" field using the STRING token and 
 * the StringConverter.
 * this annotation is critical for the resultion feature, where the
 * NullConverter is used so that no value is set to the field during
 * parsing.
 * @author elik
 *
 */
@Retention(RetentionPolicy.RUNTIME)
public @interface EmbeddedRule {
	public Class<?>	rule();
	public Class<?>	converter() default NullConverter.class;
}
